﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Staff
    {
        private int number;
        private string name;
        private string department;

        public int Number
            {
            get { return this.number; }
            set { this.number = value; }

            }

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }

        }

        public string Department
        {
            get { return this.department; }
            set { this.department = value; }

        }
        public Staff()
        {

        }
        

        public Staff(int number, string name,string department) 
        {
            this.number = number;
            this.name = name;
            this.department = department;
        }
        public void sc()
        {
            Console.WriteLine("我的工号是{0}，我的名字是{1}，我的部门是{2}",this.number,this.name,this.department); 
        }

        private int r;
        private int chan;
        private int kuang;

        public Staff(int r){
            this.r = r;
        }
        public void yuanmj() 
        {
            Console.WriteLine("园的面积为"+(this.r* this.r*3.14));
        }
        public Staff(int chan,int kuang)
        {
            this.chan = chan;
            this.kuang = kuang;
        }
        public void cfxmj()
        {
            Console.WriteLine("长方形的面积为" + (this.chan * this.kuang));
        }

    }

}
